TMTC Protocol Method

 

TMTC communication driver is the driver to communicate with controller of Daecheong Engineering Co.Ltd in Korea.

 

1. Read settings

 

<Figure 1> is read setting example of TMS2000 Rain Gauge communication driver.

<Figure 1> Read setting example of TMTC communication driver

TMTC has memory of AI, AO, DI and DO.

 

TMTC read schedule

1) ID - Controller ID. (Default 255)

2) Memory Type - AI, AO, DI, DO, etc.

3) Read Start Address - Read start address in memory type.

4) Save start address for Communication Server - Saving start address of Communication Server.

5) Read Size - Word size to read.

 

Read schedule example)

READ, 255,  AI,  0,    0,  16,

READ, 255,  AO,  0,  16,  16,

READ, 255,  DI,  0,   32,  1,

READ, 255,  DO,  0,  33,  1,

 

2. Writing settings

Write to direct address of controller, regardless of SCAN File.

 

Digital Write

Digital output is possible to do to DI and DO memory.

Digital write setting parameters are as follows :

1) PORT : TMTC connected Port number.

2) STATION : TMTC ID.

3) ADDRESS : Output address.

4) EXTRA1 : Memory area of DI and DO.

 

Write example)

PORT : 0   STATION : 1   ADDRESS:0003  EXTRA1:DO

The setting parameter shown above is example of controlling(ON/OFF) 3rd Relay of DO card for TMTC ID:1.

 

Analog Write

Analog output is possible to do to AI and AO memory.

Analog write setting parameters are as follows :

1) PORT : TMTC connected Port number.

2) STATION : TMTC ID.

3) ADDRESS : Output address.

4) EXTRA1 : Memory area of AI and AO.

 

Write example)

PORT : 0   STATION : 1   ADDRESS:0015  EXTRA1:AO

The setting parameter shown above is example of changing value of 15th WORD of AO card for TMTC ID:1.